package cn.chinaunicom.fast.common.params;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * @ProjectName: esay-secret-server
 * @Package: cn.chinaunicom.fast.common.params
 * @ClassName: CorsParams
 * @Description: java类作用描述
 * @Author: wangjc
 * @CreateDate: 2023/11/21
 * @UpdateUser: wangjc
 * @UpdateDate: 2023/11/21
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "door.cors")
public class CorsParams {

    /**
     * 允许的来源
     */
    private String allowedOrigin;
    /**
     * 允许的http头
     */
    private String allowedHeader;
    /**
     * 允许的请求方法
     */
    private String allowedMethod;
}

